﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using GraphosData;

using System.Xml.Linq;
using GraphosControls;

namespace Graphos
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();
            GraphReader gr = new GraphReader();
			m_graph = gr.OpenFile(@"..\..\..\GraphosData\App_Data\peopledata.xml");

	//		GraphReader gr = new GraphReader();

	//		ParseDotFile pdf = new ParseDotFile(@"..\..\..\GraphosData\App_Data\biblicalpeopledump.txt");

	//		m_graph = gr.OpenFile(@"..\..\..\GraphosData\App_Data\peopledata.xml");
			//if (m_graph == null)
				//ahhh

			MainGraphViewer.Graph = m_graph;
            MainSearchViewer.AllPossibleValues = m_graph.Nodes.ToList();
        }

        Graph m_graph;
    }
}
